package com.shop.pay.feign;

import com.base.common.entity.PayLog;
import com.base.common.http.HttpResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient("shop-order")
public interface ApiOrderFeign {

    /***
     * 根据用户登录名查询用户支付日志
     * @param userId
     * @return
     */
    // PayLog getPayLogByUserName(String username);

    @RequestMapping("/getPayLogByUserId")
    HttpResult getPayLogByUserName(@RequestParam("userId") Long userId);

    @RequestMapping("/findPayLogByUserId")
    PayLog findPayLogByUserName(@RequestParam("userId") Long userId);

    @RequestMapping("/updateStatus")
    HttpResult updateStatus(@RequestParam("userId") String userId, @RequestParam("transactionId") String transactionId, @RequestParam("payTime") String payTime);
}
